import request from '@/utils/request'



// 添加物理房型
export function postPriceEnter(data) {
  return request({
    url: '/hotel/rp/postPriceEnter',
    method: 'post',
    data: data
  })
}

// 修改产品维度的数据
export function postUpdateRpDimension(data) {
  return request({
    url: '/hotel/rp/postUpdateRpDimension',
    method: 'post',
    data: data
  })
}

// 查询艺龙酒店数据
export function getRpList(query) {
  return request({
    url: '/hotel/rp/getRpList',
    method: 'get',
    params: query
  })
}

// 产品上线
export function goOnline(data) {
  return request({
    url: '/hotel/rp/goOnline',
    method: 'post',
    data: data
  })
}

// 根据订单日期和rpId取采购价
export function getRpPriceAndHotelObj(query) {
  return request({
    url: '/hotel/rp/getRpPriceAndHotelObj',
    method: 'get',
    params: query
  })
}

// 根据订单ID获取采购价
export function getCgjByOrderId(query) {
  return request({
    url: '/hotel/rp/getCgjByOrderId',
    method: 'get',
    params: query
  })
}

// 产品下线
export function postShelvesRp(data) {
  return request({
    url: '/hotel/rp/postShelvesRp',
    method: 'post',
    data: data
  })
}

// 修改悦游采购价
export function postYueYouEditCgj(data) {
  return request({
    url: '/hotel/rp/postYueYouEditCgj',
    method: 'post',
    data: data
  })
}




















// 添加物理房型
export function postScopeInput(data) {
    return request({
      url: '/hotel/rp/postScopeInput',
      method: 'post',
      data: data
    })
}

// 修改卖价
export function editEPricePost(data) {
  return request({
    url: '/hotel/rp/editEPricePost',
    method: 'post',
    data: data
  })
}

// 修改房态
export function postEditEStatu(data) {
  return request({
    url: '/hotel/rp/postEditEStatu',
    method: 'post',
    data: data
  })
}

// 修改保留房数量
export function editBlfPost(data) {
  return request({
    url: '/hotel/rp/editBlfPost',
    method: 'post',
    data: data
  })
}

